1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <good>
- <goodlist/>
- </good>
- <goodhist>
- <goodconstlist/>
- <rscdtchglist/>
- </goodhist>
- <gooddet>
- <gooddetlist>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <prodcmpynm/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <instcd/>
- <goodflag/>
- <fromdd/>
- <prefromdd/>
- <goodengnm/>
- <goodhngnm/>
- <goodunitcost/>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <suppcustcd/>
- <suppcustnm/>
- <mainmngtdeptcd/>
- <mainmngtdeptnm/>
- <winacnt/>
- <winacntnm/>
- <amtacnt/>
- <amtacntnm/>
- <deliveunit/>
- <prodplce/>
- <todd/>
- <oldtodd/>
- <nonusetretresn/>
- <useyn/>
- <oldcd/>
- <cmt/>
- <status/>
- <appfixasetcd/>
- <goodflaghngnm/>
- </gooddetlist>
- </gooddet>
- <goodcopy>
- <goodlist/>
- </goodcopy>
- </main>
- <send>
- <save>
- <goodlist/>
- </save>
- <goodlist>
- <goodflag/>
- <goodnm/>
- <lrgcd/>
- <instcd/>
- <goodcd/>
- <mdlcd/>
- <goodspec/>
- <prodcmpy/>
- <smlcd/>
- <goodmodel/>
- <mdlnm/>
- <lrgnm/>
- <smlnm/>
- <prodcmpynm/>
- <oldcd/>
- <insfromdd/>
- </goodlist>
- <goodhist>
- <instcd/>
- <goodcd/>
- <fromdd/>
- <useyn/>
- </goodhist>
- <goodcopy>
- <instcd/>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- </goodcopy>
- </send>
- <init>
- <instflag>
- <label>기관</label>
- <value>Y</value>
- <label>전체</label>
- <value/>
- </instflag>
- <goodflag/>
- <deliveunit/>
- <reqprid/>
- <mngtflag/>
- <purcflag/>
- <instcd>012</instcd>
- <proddrugsetflag/>
- <instnm>강남성모병원</instnm>
- <allsizeyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </allsizeyn>
- <tmpreqflag>
- <label>청구가능</label>
- <value>Y</value>
- <label>청구불가능</label>
- <value>N</value>
- </tmpreqflag>
- <radio2>
- <label>신청유</label>
- <value>Y</value>
- <label>신청무</label>
- <value>N</value>
- </radio2>
- <expnyn>
- <label>고가</label>
- <value>Y</value>
- <label>고가아님</label>
- <value>N</value>
- </expnyn>
- </init>
- <hidden>
- <temp>
- <chnginfo>
- <chngflag/>
- </chnginfo>
- </temp>
- </hidden>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRFC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
- <submission id="TRRFC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/good"/>
- <submission id="TRRFC00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodhist" resultref="/root/main/goodhist"/>
- <submission id="TXRFC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodlist" 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" src="../../../mis/purcbaseweb/js/SMRFC00600.js"/>
- </xhtml:head>
- <xhtml:body>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1200px; height:742px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:105px; width:95px; height:14px; ">수리부품목록</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:120px; x2:535px; y2:120px; "/>
- <button id="btn_excel" class="btn5_letter3" navindex="19" style="left:480px; top:99px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "수리부품목록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_goodlist.saveExcel(fileName, "수리부품목록List",true,true, "");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:545px; top:105px; width:95px; height:14px; ">상세정보</caption>
- <button id="btn_insert" class="btn2_letter2" navindex="14" style="left:1152px; top:99px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 자산구분은 일단 고정자산으로
- // fDisabledControl(false);
- model.setValue(ipt_goodcd.attribute("ref"), "");
- model.setValue(ipt_nonusetretdd.attribute("ref"), "");
- model.setValue(ipt_nonusetretresn.attribute("ref"), "");
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
- model.resetInstanceNode("/root/main/goodhist/goodconstlist");
- model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
- var vInstance = document.models(0).instances(0);
- var cnt = vInstance.selectNodes("/root/main/gooddet/gooddetlist").length;
-
- if (cnt == 0){
-
- var spath = "/root/main/gooddet/gooddetlist";
-
- model.makeNode(spath+"/instcd" ); // 01. 기관코드
- model.makeNode(spath+"/goodflag" ); // 02. 물품구분
- model.makeNode(spath+"/prefromdd" ); // 03. (이전)적용일자
- model.makeNode(spath+"/fromdd" ); // 04. 적용일자
- model.makeNode(spath+"/lrgcd" ); // 05. 대분류
- model.makeNode(spath+"/mdlcd" ); // 06. 중분류
- model.makeNode(spath+"/smlcd" ); // 07. 소분류
- model.makeNode(spath+"/goodcd" ); // 08. 물품코드
- model.makeNode(spath+"/goodnm" ); // 09. 물품명
- model.makeNode(spath+"/goodhngnm" ); // 10. 물품명(한글)
- model.makeNode(spath+"/goodengnm" ); // 11. 물품명(영문)
- model.makeNode(spath+"/goodspec" ); // 12. 규격
- model.makeNode(spath+"/goodmodel" ); // 13. 모델
- model.makeNode(spath+"/maincustlastsuplplce"); // 14. 주거래처
- model.makeNode(spath+"/suppcustcd" ); // 15. 보조거래처
- model.makeNode(spath+"/deliveunit" ); // 16. 수불단위
- model.makeNode(spath+"/prodplce" ); // 17. 제조국
- model.makeNode(spath+"/winacnt" ); // 18. 입고계정
- model.makeNode(spath+"/amtacnt" ); // 19. 비용계정
- model.makeNode(spath+"/goodunitcost" ); // 20. 제품단가
- model.makeNode(spath+"/mainmngtdeptcd" ); // 21. 관리부서
- model.makeNode(spath+"/prodcmpycd" ); // 22. 제조회사
- model.makeNode(spath+"/todd" ); // 23. 적용일자(TO)
- model.makeNode(spath+"/nonusetretresn" ); // 24. 불용사유
- model.makeNode(spath+"/cmt" ); // 25. 비고
- model.makeNode(spath+"/oldtodd" ); // 26. 이전 적용일(todd)
- model.makeNode(spath+"/appfixasetcd" ); // 27. 적용장비코드
- model.makeNode(spath+"/goodflaghngnm" ); // 28. 적용장비명
- }
- model.setValue(ipt_status.attribute("ref") , "i");
- model.setValue(ipt_instcd.attribute("ref") , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(ipt_goodflag.attribute("ref") , model.getValue(cmb_goodflag_search.attribute("ref")));
-
- model.setValue(ipt_maincustlastsuplplce.attribute("ref") , "9999");
- model.setValue(ipt_suppcustcd.attribute("ref") , "9999");
- fDisabledControl("i");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_choidel" class="btn2_letter2" navindex="13" visibility="hidden" style="left:1105px; top:99px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue(ipt_status.attribute("ref") , "d");
- model.setValue(ipt_instcd.attribute("ref") , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(ipt_goodflag.attribute("ref") , model.getValue(cmb_goodflag_search.attribute("ref")));
- fDisabledControl("d");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:542px; y1:120px; x2:1197px; y2:120px; "/>
- <group id="grp_title" style="left:0px; top:9px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
- <caption id="caption89" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption91" class="search_name" style="left:645px; top:9px; width:83px; height:17px; ">대 분 류 :</caption>
- <caption id="caption92" class="search_name" style="left:333px; top:10px; width:83px; height:17px; ">물 품 명 :</caption>
- <caption id="caption93" class="search_name" style="left:333px; top:35px; width:85px; height:17px; ">규 격 :</caption>
- <caption id="caption94" class="search_name" style="left:645px; top:35px; width:83px; height:17px; ">중 분 류 :</caption>
- <caption id="caption95" class="search_name" style="left:645px; top:61px; width:83px; height:17px; ">제 조 원 :</caption>
- <caption id="caption97" class="search_name" visibility="hidden" style="left:1125px; top:65px; width:56px; height:17px; ">모델:</caption>
- <line id="line36" class="line_4" style="x1:1109px; y1:11px; x2:1109px; y2:77px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="12" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
- model.resetInstanceNode("/root/main/goodhist/goodconstlist");
- model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
- model.refresh();
- submit("TRRFC00602")
- if (grd_goodlist.rows - grd_goodlist.fixedRows == 0){
- fDisabledControl("x");
- var vInstance = document.models(0).instances(0);
- var cnt = vInstance.selectNodes("/root/main/gooddet/gooddetlist").length;
- if (cnt == 0){
- var spath = "/root/main/gooddet/gooddetlist";
-
- model.makeNode(spath+"/deliveunit" );
- model.makeNode(spath+"/prodplce" );
- model.makeNode(spath+"/amtacnt" );
- model.makeNode(spath+"/amtacntnm" );
- model.makeNode(spath+"/fromdd" );
- model.makeNode(spath+"/goodcd" );
- model.makeNode(spath+"/goodengnm" );
- model.makeNode(spath+"/goodhngnm" );
- model.makeNode(spath+"/goodmodel" );
- model.makeNode(spath+"/goodnm" );
- model.makeNode(spath+"/goodspec" );
- model.makeNode(spath+"/goodunitcost" );
- model.makeNode(spath+"/lrgcd" );
- model.makeNode(spath+"/lrgnm" );
- model.makeNode(spath+"/maincustlastsuplplce" );
- model.makeNode(spath+"/maincustlastsuplplcenm" );
- model.makeNode(spath+"/mainmngtdeptcd" );
- model.makeNode(spath+"/mdlcd" );
- model.makeNode(spath+"/mdlnm" );
- model.makeNode(spath+"/mngtdeptnm" );
- model.makeNode(spath+"/nonusetretdd" );
- model.makeNode(spath+"/nonusetretresn" );
- model.makeNode(spath+"/oldcd" );
- model.makeNode(spath+"/prodcmpycd" );
- model.makeNode(spath+"/prodcmpynm" );
- model.makeNode(spath+"/smlcd" );
- model.makeNode(spath+"/smlnm" );
- model.makeNode(spath+"/suppcustcd" );
- model.makeNode(spath+"/suppcustnm" );
- model.makeNode(spath+"/winacnt" );
- model.makeNode(spath+"/winacntnm" );
- model.makeNode(spath+"/cmt" );
- model.makeNode(spath+"/appfixasetcd" );
- model.makeNode(spath+"/goodflaghngnm" );
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag_search" ref="/root/send/goodlist/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" editmode="search" style="left:1115px; top:5px; width:45px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
- misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
- //misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
- ]]>
- </script>
- </select1>
- <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="4" style="left:425px; top:9px; width:180px; height:19px; "/>
- <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="2" imemode="disabled" maxlength="12" _chartype="upper" style="left:110px; top:34px; width:170px; height:19px; "/>
- <input id="ipt_goodspec_search" ref="/root/send/goodlist/goodspec" class="input_search" navindex="5" style="left:425px; top:35px; width:180px; height:19px; "/>
- <input id="ipt_prodcmpy_search" ref="/root/send/goodlist/prodcmpy" class="input_search" navindex="10" style="left:735px; top:60px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpy_search.value != "")
- {
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
- "prodcmpycd," + ipt_prodcmpy_search.value,"","prodcmpy,prodcmpynm" ,
- ipt_prodcmpy_search,"SPRSD00160","","");
- }else{
- ipt_prodcmpy_search.value = "";
- ipt_prodcmpynm_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button6" class="icon_search" navindex="-1" style="left:807px; top:60px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpy_search,"","prodcmpy,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_prodcmpynm_search" ref="/root/send/goodlist/prodcmpynm" class="input_search" navindex="11" appearance="input" style="left:827px; top:60px; width:153px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_prodcmpynm_search.value != "")
- {
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
- ,"prodcmpynm," + ipt_prodcmpynm_search.value ,"","prodcmpy,prodcmpynm"
- ,ipt_prodcmpynm_search,"SPRSD00160","","");
- }else{
- ipt_prodcmpynm_search.value = "";
- ipt_prodcmpycd_search.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodmodel_search" ref="/root/send/goodlist/goodmodel" class="input_search" navindex="46" visibility="hidden" style="left:1181px; top:65px; width:10px; height:19px; "/>
- <caption id="caption98" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기 관 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:110px; top:9px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="6" appearance="minimal" style="left:735px; top:10px; width:190px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList("BC", cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "Y", "Y");
- cmb_mdlcd_search.value="";
- cmb_mdlcd_search.refresh();
- cmb_mdlcd_search.dispatch("xforms-value-changed");
-
- //model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="7" appearance="minimal" style="left:735px; top:35px; width:190px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "Y", "Y");
- //cmb_smlcd_search.value="";
- //model.refresh();
- //cmb_smlcd_search.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" visibility="hidden" style="left:670px; top:100px; width:40px; height:19px; "/>
- <input id="ipt_status" ref="/root/main/gooddet/gooddetlist/status" visibility="hidden" style="left:625px; top:100px; width:40px; height:19px; "/>
- <datagrid id="grd_goodlist" nodeset="/root/main/good/goodlist" visibility="visible" caption="물품코드^물품명(기준)^물품명^물품명(한글)^규격^모델^적용장비^제조사^제조회사명^대분류^대분류명^중분류^중분류명^기관코드^물품구분^(이전) 적용일^적용일자^단가^주거래처^주거래처명^보조거래처^보조거래처명^관리부서^관리부서명^입고계정^입고계정명^비용계정^비용계정명^수불단위^제조국^구적용일자(to)^코드불용일^사용유무^불용처리사유^비고" colsep="^" colwidth="109, 150, 150, 150, 80, 123, 100, 13, 91, 22, 80, 21, 80, 17, 20, 28, 23, 17, 16, 20, 22, 24, 17, 21, 23, 26, 20, 20, 20, 19, 23, 23, 17, 17, 18, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="47" style="left:0px; top:125px; width:535px; height:600px; font-weight:normal; text-align:center; ">
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="goodengnm" visibility="visible" style="text-align:left; padding-left:10; "/>
- <col ref="goodhngnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="goodflaghngnm" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpycd" visibility="hidden" style="text-align:left; "/>
- <col ref="prodcmpynm" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="lrgcd" visibility="hidden" style="text-align:center; "/>
- <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
- <col ref="mdlcd" visibility="hidden" style="text-align:left; "/>
- <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
- <col ref="prefromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goodunitcost" visibility="hidden" style="text-align:left; "/>
- <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
- <col ref="maincustlastsuplplcenm" visibility="hidden" style="text-align:left; "/>
- <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
- <col ref="suppcustnm" visibility="hidden" style="text-align:left; "/>
- <col ref="mainmngtdeptcd" visibility="hidden" style="text-align:left; "/>
- <col ref="mainmngtdeptnm" visibility="hidden" style="text-align:left; "/>
- <col ref="winacnt" visibility="hidden" style="text-align:left; "/>
- <col ref="winacntnm" visibility="hidden" style="text-align:left; "/>
- <col ref="amtacnt" visibility="hidden" style="text-align:left; "/>
- <col ref="amtacntnm" visibility="hidden" style="text-align:left; "/>
- <col ref="deliveunit" visibility="hidden" style="text-align:left; "/>
- <col ref="prodplce" visibility="hidden" style="text-align:left; "/>
- <col ref="oldtodd" visibility="hidden" style="text-align:left; "/>
- <col ref="todd" visibility="hidden" style="text-align:left; "/>
- <col ref="useyn" visibility="hidden" style="text-align:left; "/>
- <col ref="nonusetretresn" visibility="hidden" style="text-align:left; "/>
- <col ref="cmt" visibility="hidden" style="text-align:left; "/>
- <col ref="appfixasetcd" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var path = "/root/send/goodhist/";
- var instcd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("instcd"));
- var goodcd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd"));
- var fromdd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("fromdd"));
- var useyn = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("useyn"));
- var todd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("todd"));
-
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
- if (todd != '99991231'){
- model.makeValue(ipt_status.attribute("ref"), "x");
- fDisabledControl("x");
- }else{
- model.makeValue(ipt_status.attribute("ref"), "u");
- fDisabledControl("u");
- }
- model.setValue(path+"instcd" , instcd);
- model.setValue(path+"goodcd" , goodcd);
- model.setValue(path+"fromdd" , fromdd);
- model.setValue(path+"useyn" , useyn );
- if(submit("TRRFC00603")){
- ipt_lrgcd.dispatch("xforms-value-changed");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:715px; top:100px; width:40px; height:19px; "/>
- <input id="ipt_prefromdd" ref="/root/main/gooddet/gooddetlist/prefromdd" visibility="hidden" style="left:760px; top:100px; width:115px; height:19px; "/>
- <input id="ipt_oldtodd" ref="/root/main/gooddet/gooddetlist/oldtodd" class="input_default" visibility="hidden" inputtype="date" style="left:880px; top:100px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var CompTodd = model.getValue("/root/init/oldgoodlist/todd");
- var CompFromdd = model.getValue("/root/init/oldgoodlist/fromdd");
- var FromDD = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
- if(CompTodd!="99991231"){
-
- if(FromDD!=CompFromdd){
- messageBox("이미 불용된 코드","I009");
- model.setValue("/root/main/gooddet/gooddetlist/todd",CompTodd);
- ipt_nonusetretdd.refresh();
- return;
- }
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_detail" style="left:541px; top:163px; width:659px; height:615px; ">
- <caption id="cap_oldcd" class="cell_1" visibility="hidden" style="left:329px; top:217px; width:108px; height:23px; vertical-align:middle; ">구코드</caption>
- <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_default" disabled="true" visibility="hidden" maxlength="12" style="left:440px; top:218px; width:214px; height:19px; "/>
- <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" disabled="false" visibility="hidden" editable="false" style="left:110px; top:99px; width:60px; height:19px; background-color:#ffff99; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- "1,"+ ipt_useyn.value + ",2," + ipt_amtacnt.value,"","amtacnt,amtacntnm",
- ipt_amtacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_fromdd");
- ]]>
- </script>
- </input>
- <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" disabled="false" visibility="hidden" editable="false" style="left:110px; top:75px; width:60px; height:19px; background-color:#ffff99; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- "1,"+ ipt_useyn.value + ",2," + ipt_winacnt.value,"","winacnt,winacntnm",
- ipt_winacnt,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- </input>
- <button id="btn_amtacnt" class="icon_search" disabled="false" visibility="hidden" style="left:175px; top:101px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="input_fix" disabled="false" visibility="hidden" editable="false" appearance="input" style="left:194px; top:99px; width:132px; height:19px; background-color:#ffff99; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- "1,"+ ipt_useyn.value + ",1," + ipt_amtacntnm.value,"","amtacnt,amtacntnm",
- ipt_amtacntnm,"PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_winacnt" class="icon_search" disabled="false" visibility="hidden" style="left:175px; top:77px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_amtacnt" class="cell_1" visibility="hidden" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">비용계정</caption>
- <input id="ipt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="input_fix" disabled="false" visibility="hidden" editable="false" appearance="input" style="left:194px; top:75px; width:132px; height:19px; background-color:#ffff99; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- "1,"+ ipt_useyn.value + ",1," + ipt_winacntnm.value,"","winacnt,winacntnm" ,
- ipt_winacntnm,"PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_winacnt" class="cell_1" visibility="hidden" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">입고계정</caption>
- <caption id="caption66" class="cell_1" visibility="hidden" style="left:329px; top:121px; width:108px; height:23px; vertical-align:middle; ">소분류</caption>
- <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" disabled="false" navindex="38" style="left:110px; top:194px; width:543px; height:64px; "/>
- <line id="line8" class="line_2" style="x1:110px; y1:191px; x2:653px; y2:191px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:119px; x2:653px; y2:119px; "/>
- <line id="line11" class="line_2" visibility="hidden" style="x1:0px; y1:71px; x2:653px; y2:71px; "/>
- <line id="line32" class="line_2" style="x1:0px; y1:95px; x2:653px; y2:95px; "/>
- <line id="line31" class="line_2" style="x1:0px; y1:47px; x2:653px; y2:47px; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:23px; x2:653px; y2:23px; "/>
- <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" disabled="false" navindex="19" imemode="hangul" maxlength="450" style="left:439px; top:27px; width:216px; height:19px; "/>
- <caption id="cap_prodplce" class="cell_1" style="left:329px; top:49px; width:108px; height:23px; vertical-align:middle; ">제조국</caption>
- <button id="btn_prodcmpycd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:588px; top:264px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_goodcd" class="cell_1" style="left:0; top:1px; width:108px; height:23px; vertical-align:middle; ">물품코드</caption>
- <caption id="cap_goodhngnm" class="cell_1" style="left:329px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(한글)</caption>
- <caption id="cap_prodcmpycd" class="cell_1" visibility="hidden" style="left:505px; top:260px; width:56px; height:23px; vertical-align:middle; ">제조회사</caption>
- <caption id="cap_goodengnm" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(영문)</caption>
- <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" disabled="false" navindex="17" style="left:439px; top:2px; width:216px; height:19px; "/>
- <caption id="cap_goodspec" class="cell_1" style="left:329px; top:0px; width:108px; height:23px; vertical-align:middle; ">규격</caption>
- <caption id="cap_lrgcd" class="cell_1" style="left:329px; top:73px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
- <caption id="cap_mdlcd" class="cell_1" style="left:329px; top:97px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" disabled="false" navindex="48" visibility="hidden" editable="false" style="left:565px; top:262px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
- "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,
- ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" disabled="false" navindex="18" imemode="alpha" maxlength="450" style="left:110px; top:26px; width:216px; height:19px; "/>
- <select1 id="cmb_prodplce" ref="/root/main/gooddet/gooddetlist/prodplce" class="combo" disabled="false" navindex="22" appearance="minimal" style="left:439px; top:51px; width:216px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/prodplce">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_prodcmpycd");
- ]]>
- </script>
- </select1>
- <input id="ipt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="input_fix" disabled="false" navindex="49" visibility="hidden" editable="false" appearance="input" style="left:607px; top:262px; width:20px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
- "prodcmpynm," + model.getValue(ipt_prodcmpynm.attribute("ref")),"","prodcmpycd,prodcmpynm" ,
- ipt_prodcmpynm,"SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mngtdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="visible" style="left:503px; top:170px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
- misfOpenPopUpList("02", ipt_mainmngtdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">적용일자</caption>
- <caption id="cap_mainmngtdeptcd" class="cell_1" visibility="visible" style="left:329px; top:169px; width:108px; height:23px; vertical-align:middle; ">관리부서</caption>
- <input id="ipt_mainmngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" disabled="false" navindex="36" visibility="visible" editable="false" style="left:440px; top:170px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <input id="ipt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="input_fix" disabled="false" navindex="37" visibility="visible" editable="false" appearance="input" style="left:522px; top:170px; width:132px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_mngtdeptnm.value, "", "mainmngtdeptcd,mainmngtdeptnm",
- ipt_mngtdeptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="combo_essential" disabled="false" navindex="23" inputtype="date" style="left:110px; top:75px; width:216px; height:19px; background-color:#ffff99; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curdate = getCurrentDate();
- var cvtdate = model.getValue(ipt_fromdd.attribute("ref"));
- var precvtdate = model.getValue(ipt_prefromdd.attribute("ref"));
- if ( cvtdate < curdate ) {
- messageBox("변경일자를 현재일자보다 과거시점으로 변경", "E001");
- model.setValue(ipt_fromdd.attribute("ref") , model.getValue(ipt_prefromdd.attribute("ref")));
- model.refresh();
- return;
- }
-
- if ( cvtdate < precvtdate ) {
- messageBox("변경일자를 이전의 변경일자보다 과거시점으로 변경", "E001");
- model.setValue(ipt_fromdd.attribute("ref") , model.getValue(ipt_prefromdd.attribute("ref")));
- model.refresh();
- return;
- }
-
-
- ]]>
- </script>
- </input>
- <caption id="cap_cmt" class="cell_1" style="left:0px; top:194px; width:108px; height:64px; vertical-align:middle; ">비고</caption>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="input_fix" disabled="false" navindex="30" editable="false" appearance="input" style="left:194px; top:123px; width:132px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,
- ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="input_fix" disabled="false" navindex="34" editable="false" appearance="input" style="left:524px; top:146px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref")), "","suppcustcd,suppcustnm" ,
- ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" disabled="false" navindex="29" editable="false" style="left:110px; top:123px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",entrregno," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- model.setFocus("ipt_suppcustcd");
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" disabled="false" navindex="-1" style="left:503px; top:146px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd",cmb_instcd.value);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_goodunitcost" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">제품단가</caption>
- <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" disabled="true" navindex="26" maxlength="14.2" format="#,###.00" style="left:110px; top:99px; width:216px; height:19px; text-align:right; background-color:#ffff99; "/>
- <button id="btn_maincustlastsuplplce" class="icon_search" disabled="false" navindex="-1" style="left:175px; top:123px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag_search,ipt_prodcmpycd,opt_prodcmpynm");
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd",cmb_instcd.value);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_suppcustcd" class="cell_1" style="left:329px; top:145px; width:108px; height:23px; vertical-align:middle; ">보조거래처</caption>
- <caption id="cap_maincustlastsuplplce" class="cell_1" style="left:0px; top:121px; width:108px; height:23px; vertical-align:middle; ">주거래처</caption>
- <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" disabled="false" navindex="33" editable="false" style="left:440px; top:146px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",entrregno," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_deliveunit" class="cell_1" style="left:329px; top:121px; width:108px; height:23px; vertical-align:middle; ">수불단위</caption>
- <line id="line1" class="line_2" style="x1:0px; y1:167px; x2:653px; y2:167px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:143px; x2:653px; y2:143px; "/>
- <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_default" disabled="false" navindex="15" editable="false" maxlength="12" style="left:110px; top:3px; width:147px; height:19px; "/>
- <button id="btn_goodcdcopy" class="btn2_letter4" disabled="true" navindex="16" style="left:262px; top:3px; width:64px; height:19px; ">
- <caption>코드생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGoodCdCopy();
- ]]>
- </script>
- </button>
- <caption id="cap_nonusetretdd" class="cell_1" style="left:0px; top:145px; width:108px; height:48px; vertical-align:middle; ">코드불용일/사유</caption>
- <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" disabled="false" navindex="32" inputtype="date" style="left:110px; top:146px; width:216px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var oldtodd = model.getValue(ipt_oldtodd.attribute("ref"));
- var curdate = getCurrentDate();
- var cvtdate = model.getValue(ipt_nonusetretdd.attribute("ref"));
- if(oldtodd!="99991231"){
- messageBox("이미 불용된 코드","I009");
- model.setValue(ipt_nonusetretdd.attribute("ref"), oldtodd);
- ipt_nonusetretdd.refresh();
- return;
- }
-
- if ( cvtdate < curdate ) {
- messageBox("변경일자를 현재일자보다 과거시점으로 변경", "E001");
- model.setValue(ipt_nonusetretdd.attribute("ref"), oldtodd);
- ipt_nonusetretdd.refresh();
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" disabled="false" navindex="35" style="left:110px; top:170px; width:216px; height:19px; "/>
- <button id="btn_costhistinfo" class="btn_sw" group="tab" style="left:90px; top:265px; width:75px; height:22px; ">
- <caption>이력정보</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="button8" class="btn_sw" group="tab" selected="true" style="left:0px; top:265px; width:90px; height:22px; ">
- <caption>변경세부이력</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <switch id="switch2" style="left:0px; top:287px; width:645px; height:313px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_rscdtchglist" nodeset="/root/main/goodhist/rscdtchglist" caption="기관코드^테이블^테이블명^변경일시^물품분류^물품코드^컬럼^변경항목^컬럼코멘드^변경전변경값^변경전^변경후변경값^변경후^컬럼구분^비고^수정자^수정자명" colsep="^" colwidth="0, 0, 0, 117, 0, 0, 0, 105, 0, 0, 100, 0, 100, 0, 100, 0, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="39" style="left:0px; top:27px; width:640px; height:273px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="tabname" visibility="hidden"/>
- <col ref="comments" visibility="hidden"/>
- <col ref="changedt"/>
- <col ref="changefl" visibility="hidden"/>
- <col ref="changecd" visibility="hidden"/>
- <col ref="colname"/>
- <col ref="colcomt"/>
- <col ref="colcomt2"/>
- <col ref="oldvalue"/>
- <col ref="oldvalnm"/>
- <col ref="newvalue"/>
- <col ref="newvalnm"/>
- <col ref="colflag"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtridnm"/>
- </datagrid>
- <caption id="caption60" class="tit_2" style="left:5px; top:8px; width:119px; height:13px; ">변경세부이력</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:22px; x2:640px; y2:22px; "/>
- </case>
- <case id="case2">
- <line id="line28" class="line_1" style="x1:0px; y1:22px; x2:640px; y2:22px; "/>
- <caption id="caption38" class="tit_2" style="left:5px; top:8px; width:182px; height:95px; ">이력정보</caption>
- <datagrid id="grd_costhistinfo" nodeset="/root/main/goodhist/goodconstlist" caption="적용일자^제품단가^주거래처^보조거래처^수불단위^비고^제조국^물품명(영문)^물품명(한글)^규격^모델^관리부서^수정자^물품코드^물품명^제조사^제조사명^대분류^대분류명^중분류^중분류명^소분류^소분류명^기관코드^물품구분^(이전)적용일자^주거래처^보조거래처^관리부서^입고계정^입고계정명^비용계정^비용계정명^적용일자(TO)^구적용일자(TO)^불용사유^사용유무^구코드" colsep="^" colwidth="85, 80, 111, 102, 76, 161, 80, 100, 98, 96, 91, 95, 80, 17, 17, 7, 7, 7, 8, 6, 6, 6, 8, 11, 9, 12, 12, 8, 9, 10, 11, 10, 12, 8, 11, 8, 7, 7" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:27px; width:640px; height:273px; font-weight:normal; text-align:center; ">
- <col ref="fromdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
- <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
- <col disabled="true" ref="deliveunit" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" style="text-align:left; padding-left:10; "/>
- <col disabled="true" ref="prodplce" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="goodengnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodhngnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="mainmngtdeptnm" style="text-align:left; padding-left:10; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="goodcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodnm" visibility="hidden" style="text-align:left; "/>
- <col ref="prodcmpycd" visibility="hidden" style="text-align:left; "/>
- <col ref="prodcmpynm" visibility="hidden" style="text-align:left; "/>
- <col ref="lrgcd" visibility="hidden" style="text-align:left; "/>
- <col ref="lrgnm" visibility="hidden" style="text-align:left; "/>
- <col ref="mdlcd" visibility="hidden" style="text-align:left; "/>
- <col ref="mdlnm" visibility="hidden" style="text-align:left; "/>
- <col ref="smlcd" visibility="hidden" style="text-align:left; "/>
- <col ref="smlnm" visibility="hidden" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" style="text-align:left; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
- <col ref="prefromdd" visibility="hidden" style="text-align:left; "/>
- <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
- <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
- <col ref="mainmngtdeptcd" visibility="hidden" style="text-align:left; "/>
- <col ref="winacnt" visibility="hidden" style="text-align:left; "/>
- <col ref="winacntnm" visibility="hidden" style="text-align:left; "/>
- <col ref="amtacnt" visibility="hidden" style="text-align:left; "/>
- <col ref="amtacntnm" visibility="hidden" style="text-align:left; "/>
- <col ref="todd" visibility="hidden" style="text-align:left; "/>
- <col ref="oldtodd" visibility="hidden" style="text-align:left; "/>
- <col ref="nonusetretresn" visibility="hidden" style="text-align:left; "/>
- <col ref="useyn" visibility="hidden" style="text-align:left; "/>
- <col ref="oldcd" visibility="hidden" style="text-align:left; "/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/goodhist/goodconstlist[" + grd_costhistinfo.row + "]");
- model.makeValue(ipt_status.attribute("ref"), "h");
- fDisabledControl("h");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <line id="line3" class="line_2" style="x1:0px; y1:260px; x2:653px; y2:260px; "/>
- <caption id="cap_goodnm" class="cell_1" visibility="hidden" style="left:540px; top:389px; width:46px; height:23px; vertical-align:middle; ">물품명</caption>
- <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" disabled="false" visibility="hidden" maxlength="18" style="left:585px; top:391px; width:36px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/gooddet/gooddetlist/goodmodel" class="input_default" disabled="false" visibility="hidden" maxlength="150" style="left:585px; top:420px; width:35px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("ipt_goodspec");
- ]]>
- </script>
- </input>
- <caption id="cap_goodmodel" class="cell_1" visibility="hidden" style="left:539px; top:418px; width:46px; height:23px; vertical-align:middle; ">모델명</caption>
- <caption id="cap_appfixasetcd" class="cell_1" style="left:0px; top:49px; width:108px; height:23px; vertical-align:middle; ">적용장비</caption>
- <input id="ipt_appfixasetcd" ref="/root/main/gooddet/gooddetlist/appfixasetcd" class="input_default" navindex="20" style="left:110px; top:49px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_appfixasetcd.value != "")
- {
- model.makeValue("/root/main/gooddet/gooddetlist/fixasetcd","");
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
- "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_appfixasetcd.value, "", "goodflaghngnm,fixasetcd"
- ,ipt_appfixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
- var appfixasetcd = model.getValue("/root/main/gooddet/gooddetlist/fixasetcd");
- model.removenode("/root/main/gooddet/gooddetlist/fixasetcd");
- if(appfixasetcd != ""){
- model.setValue("/root/main/gooddet/gooddetlist/appfixasetcd",appfixasetcd);
- }
- }else{
- ipt_goodflaghngnm.value = "";
- }
-
- ipt_appfixasetcd.refresh();
- ipt_goodflaghngnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_appfixasetcd" class="icon_search" disabled="false" navindex="-1" style="left:175px; top:49px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/gooddet/gooddetlist/fixasetcd","");
- rszfOpenPopUpListByWndName(ipt_appfixasetcd,"", "goodflaghngnm,fixasetcd","SPRSD00240", "instcd", cmb_instcd.value, "Y");
- var appfixasetcd = model.getValue("/root/main/gooddet/gooddetlist/fixasetcd");
- model.removenode("/root/main/gooddet/gooddetlist/fixasetcd");
- if(appfixasetcd != ""){
- model.setValue("/root/main/gooddet/gooddetlist/appfixasetcd",appfixasetcd);
- }
- ipt_appfixasetcd.refresh();
- ipt_goodflaghngnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflaghngnm" ref="/root/main/gooddet/gooddetlist/goodflaghngnm" class="input_fix" navindex="21" editable="false" appearance="input" style="left:194px; top:49px; width:132px; height:19px; "/>
- <select1 id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" navindex="6" appearance="minimal" style="left:440px; top:75px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList("BC", ipt_lrgcd.value, "", "ipt_mdlcd", "", "M", "", "Y");
- //ipt_mdlcd.value="";
- ipt_mdlcd.refresh();
- ipt_mdlcd.dispatch("xforms-value-changed");
- ]]>
- </script>
- </select1>
- <select1 id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" navindex="7" appearance="minimal" style="left:440px; top:99px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //rszfLMSComboList("BC", ipt_lrgcd.value, ipt_mdlcd.value, "ipt_smlcd", "", "S", "", "Y");
- //ipt_smlcd.value="";
- //ipt_smlcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" navindex="8" appearance="minimal" style="left:440px; top:122px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" disabled="false" navindex="31" appearance="minimal" style="left:440px; top:123px; width:214px; height:19px; text-align:center; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/init/deliveunit">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">수리부품코드등록</caption>
- </group>
- <group id="group4" visibility="visible" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="42" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //물품명입력란 히든처리. 물품명(한글) 값 입력
- if(ipt_goodnm.value.getTrim()=="") ipt_goodnm.value = ipt_goodhngnm.value;
-
- if (fDataValiChk() == false) return;
- fSetDataSave();
- var focus = "";
- var rsltval = submit("TXRFC00601");
- var chngflag = model.getValue("/root/hidden/temp/chnginfo/chngflag");
- var status = model.getValue(ipt_status.attribute("ref"));
- // model.setValue("/root/hidden/temp/chnginfo/chngflag", "");
- if (chngflag == "N"){
- messageBox("변경된 데이타가 ", "E014");
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
- model.makeValue(ipt_status.attribute("ref"), "u");
- model.refresh();
- return;
- }else if(chngflag == "D"){
- messageBox("데이타 변경없이 이력저장을 할수 ", "I004");
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
- model.makeValue(ipt_status.attribute("ref"), "u");
- model.refresh();
- return;
- }else if(chngflag == "U"){
- messageBox("적용일자 변경없이 이력저장을 할수 ", "I004");
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
- model.makeValue(ipt_status.attribute("ref"), "u");
- model.refresh();
- return;
- }else{
- if (rsltval){
- messageBox("데이타 저장이 성공적으로 ", "I002");
- }else{
- messageBox("데이타 저장에 ", "E009");
- model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
- model.makeValue(ipt_status.attribute("ref"), "u");
- model.refresh();
- return;
- }
- }
- if(status != "u"){
- model.resetInstanceNode("/root/main/gooddet/gooddetlist");
- model.resetInstanceNode("/root/main/goodhist/goodconstlist");
- model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
- btn_search.dispatch("DOMActivate");
- }else{
- focus = grd_goodlist.row;
- btn_search.dispatch("DOMActivate");
- model.setFocus("grd_goodlist");
- grd_goodlist.row = focus;
- grd_goodlist.dispatch("ondblclick");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" navindex="43" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" navindex="41" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_prt" class="btn6_letter2" navindex="40" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|