123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?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>
- <rfcmfacdlist>
- <fixasetcd/>
- <goodflaghngnm/>
- <goodmodel/>
- <cntrdeptcd/>
- <installplcenm/>
- </rfcmfacdlist>
- </main>
- <target>
- <defaultvalue>
- <goodflag/>
- <lrgcd>A</lrgcd>
- <lrgnm/>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <installplcecd/>
- <installplcenm/>
- </defaultvalue>
- </target>
- <init>
- <refcond>
- <label>코드명</label>
- <value>goodflaghngnm</value>
- <label>코드</label>
- <value>fixasetcd</value>
- </refcond>
- <goodflag>
- <label>비품</label>
- <value>GE</value>
- <label>의료장비</label>
- <value>EQ</value>
- <label>전체</label>
- <value/>
- </goodflag>
- </init>
- <send>
- <deptcd/>
- <deptnm/>
- <installplcecd/>
- <installplcenm/>
- <requirementcd/>
- <requirementnm/>
- <instcd/>
- <goodflag/>
- <mngtdeptcd/>
- <mngtdeptnm/>
- <tempmngtdeptcd/>
- <tempmngtdeptnm/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- fSettinData();
- ]]>
- </script>
- <submission id="TRRSD00241" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.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/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.setValue("/root/send/instcd", model.getValue(PURTARGET_NODE + "/instcd"));
- model.setValue("/root/send/goodflag", model.getValue(PURTARGET_NODE + "/goodflag"));
- model.setValue("/root/send/deptcd", model.getValue(PURTARGET_NODE + "/deptcd"));
- model.setValue("/root/send/deptnm", model.getValue(PURTARGET_NODE + "/deptnm"));
- model.setValue("/root/send/installplcecd", model.getValue(PURTARGET_NODE + "/installplcecd"));
- model.setValue("/root/send/installplcenm", model.getValue(PURTARGET_NODE + "/installplcenm"));
-
- var mainObj = getMainViewer();
- var scrnID = mainObj.javascript.getScreenID();
- if (scrnID == "SMRFC00700"){ // 고정자산 바코드 출력
- rdo_requirementcd.select(1);
- }else{
- rdo_requirementcd.select(0);
- }
-
- // 물품구분값이 넘어오면 수정하지 못하게한다.
- if (model.getValue(cmb_goodflag.attribute("ref")).length != 0) cmb_goodflag.disabled = true;
-
- misfGridInit(grd_rfcmfacdlist);
-
- misfMsterDetailSet(grd_rfcmfacdlist,null,"TRRSD00241","N");
-
- // 장비는 영문명칭을 화면에 보여주고 그외에는 한글명을 보여준다.
- if (model.getValue(PURTARGET_NODE + "/goodflag") == "EQ")
- {
- grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodflagengnm")) = false;
- grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodflaghngnm")) = true;
- model.refresh();
- }
-
- }
-
- function fSettinData()
- {
- var sDeptcd = model.getValue("/root/send/deptcd");
- var sDeptnm = model.getValue("/root/send/deptnm");
-
- if(sDeptcd != "" || sDeptnm != "")
- {
- ipt_deptcd.disabled = true;
- ipt_deptnm.disabled = true;
- btn_dept.disabled = true;
- }
-
- var sInstallplcecd = model.getValue("/root/send/installplcecd");
- var sInstallplcenm = model.getValue("/root/send/installplcenm");
-
- if(sInstallplcecd != "" || sInstallplcenm != "")
- {
- ipt_installplcecd.disabled = true;
- ipt_installplcenm.disabled = true;
- btn_installplce.disabled = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="731" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:539px; ">
- <group id="group2" style="left:0px; top:5px; width:700px; height:110px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:700; height:110px; "/>
- <input id="ipt_requirementnm" ref="/root/send/requirementnm" class="input_search" navindex="2" _chartype="upper" style="left:331px; top:8px; width:213px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:629px; top:43px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:614px; y1:16px; x2:614px; y2:96px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_requirementnm" class="search_name" style="left:246px; top:9; width:85px; height:17px; ">조 건 :</caption>
- <select1 id="rdo_requirementcd" ref="/root/send/requirementcd" class="radio_s_essential" navindex="1" overflow="visible" appearance="full" cols="2" style="left:100; top:9; width:120; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/refcond">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("ipt_requirementnm");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_search" navindex="3" appearance="minimal" style="left:100; top:34px; width:120; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_requirementcd" class="search_name" style="left:15; top:9; width:86px; height:17px; ">조건구분 :</caption>
- <caption id="cap_goodflag" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품구분 :</caption>
- <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_search" visibility="hidden" style="left:610px; top:65px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02","","deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_dept" class="icon_search" visibility="hidden" style="left:640px; top:65px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="cap_deptcd" class="search_name" visibility="hidden" style="left:525px; top:65px; width:86px; height:17px; ">귀속부서 :</caption>
- <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_default" visibility="hidden" appearance="input" style="left:661px; top:65px; width:24px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02","","deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_installplce" class="icon_search" visibility="hidden" style="left:640px; top:86px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm") ;
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <caption id="cap_installplcecd" class="search_name" visibility="hidden" style="left:525px; top:86px; width:86px; height:17px; ">설치장소 :</caption>
- <input id="ipt_installplcecd" ref="/root/send/installplcecd" class="input_search" visibility="hidden" style="left:610px; top:86px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcecd.value != ""){
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
- "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "","");
- }else{
- ipt_installplcenm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_installplcenm" ref="/root/send/installplcenm" class="input_default" visibility="hidden" appearance="input" style="left:661px; top:86px; width:24px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcenm.value != ""){
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
- "deptnm," + ipt_installplcenm.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "","");
- }else{
- ipt_installplcecd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_tempmngtdeptnm" ref="/root/send/tempmngtdeptnm" class="input_default" navindex="7" appearance="input" style="left:246px; top:86px; width:298px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_tempmngtdeptnm.value.length == 0){
- ipt_tempmngtdeptcd.value = "";
- }else{
- misfValidationCheck("02","","tempmngtdeptcd,tempmngtdeptnm");
- }
- ipt_tempmngtdeptnm.refresh();
- ipt_tempmngtdeptcd.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_tempmngtdeptcd" ref="/root/send/tempmngtdeptcd" class="input_search" navindex="6" style="left:100px; top:86px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_tempmngtdeptcd.value.length == 0){
- ipt_tempmngtdeptnm.value = "";
- }else{
- misfValidationCheck("02","","tempmngtdeptcd,tempmngtdeptnm");
- }
- ipt_tempmngtdeptnm.refresh();
- ipt_tempmngtdeptcd.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_mngtdeptcd" class="icon_search" navindex="-1" style="left:225px; top:60px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02",ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
- ipt_mngtdeptnm.refresh();
- ipt_mngtdeptcd.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <button id="btn_tempmngtdeptcd" class="icon_search" navindex="-1" style="left:225px; top:86px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02",ipt_tempmngtdeptcd,"","tempmngtdeptcd,tempmngtdeptnm");
- ipt_tempmngtdeptnm.refresh();
- ipt_tempmngtdeptcd.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <input id="ipt_mngtdeptnm" ref="/root/send/mngtdeptnm" class="input_default" navindex="5" appearance="input" style="left:246px; top:60px; width:298px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptnm.value.length == 0){
- ipt_mngtdeptcd.value = "";
- }else{
- misfValidationCheck("02","","mngtdeptcd,mngtdeptnm");
- }
- ipt_mngtdeptnm.refresh();
- ipt_mngtdeptcd.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_mngtdept" class="search_name" style="left:15px; top:60px; width:94px; height:17px; ">사용부서 :</caption>
- <caption id="cap_tempmngtdept" class="search_name" style="left:15px; top:86px; width:86px; height:17px; ">관리부서 :</caption>
- <input id="ipt_mngtdeptcd" ref="/root/send/mngtdeptcd" class="input_search" navindex="4" style="left:100px; top:60px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_mngtdeptcd.value.length == 0){
- ipt_mngtdeptnm.value = "";
- }else{
- misfValidationCheck("02","","mngtdeptcd,mngtdeptnm");
- }
- ipt_mngtdeptnm.refresh();
- ipt_mngtdeptcd.refresh();
- ]]>
- </script>
- </input>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:138px; x2:700; y2:138px; "/>
- <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/rfcmfacdlist" caption="자산코드^한글명^영문명^규격^모델^귀속부서^설치장소^사용부서^관리부서^제조회사코드^제조원^입고일자^거래처코드^거래처명^내/외자코드^내/외자명^외화금액^원화금액^^Serial No" colsep="^" colwidth="97, 212, 212, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" navindex="9" style="left:0px; top:143px; width:700px; height:391px; ">
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodflagengnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="cntrdeptnm"/>
- <col ref="installplcenm"/>
- <col ref="mngtdeptnm"/>
- <col ref="tempmngtdeptnm"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="suplplcenm" visibility="hidden"/>
- <col ref="possnflagcd" visibility="hidden"/>
- <col ref="possnflagnm" visibility="hidden"/>
- <col ref="forgncurncyamt" visibility="hidden"/>
- <col ref="possnamt" visibility="hidden"/>
- <col ref="curncyunit" visibility="hidden"/>
- <col ref="mngtno"/>
- <col ref="possndd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="depthngnm" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="reqdeptnm" visibility="hidden"/>
- <col ref="originalmngtdeptnm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_rfcmfacdlist.isCell( event.target ) && grd_rfcmfacdlist.row >= grd_rfcmfacdlist.fixedRows ) {
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rfcmfacdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:8px; top:538px; width:700px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:586px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfPopUpListReturn(grd_rfcmfacdlist, model.getValue("/root/target/defaultvalue/nodebigo"));
- // misfPopUpListReturn(grd_rfcmfacdlist);
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:644px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|